package de.jmda.gen.java.impl;

import static org.junit.Assert.assertTrue;

import org.apache.log4j.Logger;
import org.junit.Test;

import de.jmda.gen.Generator;
import de.jmda.gen.GeneratorException;
import de.jmda.gen.java.TypeKindGenerator;

public class JUTDefaultTypeKindGenerator
{
	private final static Logger LOGGER =
      Logger.getLogger(JUTDefaultTypeKindGenerator.class);

	/**
	 * @throws GeneratorException
	 */
	@Test
	public void testDefaultTypeKindGenerator() throws GeneratorException
	{
		Generator generator = TypeKindGenerator.CLASS;

		StringBuffer generated = generator.generate();

		LOGGER.debug("generated [" + generated + "]");

		assertTrue(
				"unexpected type kind [" + generated + "]",
				TypeKindGenerator.CLASS.getTypeKind().contentEquals(generated));
	}
}